﻿<Window x:Class="Microsoft.Research.ScientificWorkflow.DataTypesLegendCtrl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:Convert="clr-namespace:Microsoft.Research.ScientificWorkflow"
        WindowStyle="None" ResizeMode="NoResize" SizeToContent="WidthAndHeight"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" MinWidth="200" Width="Auto" HorizontalAlignment="Center" x:Name="ucDataTypeHolder" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    <Window.Resources>
        <Convert:ColorConvert x:Key="StringColorConverter"/>
        <Convert:DataTypesLegendToolTipGenerator x:Key="ToolTipGenerator"/>
        <DataTemplate x:Key="DatatypeTemplate">
            <StackPanel Orientation="Horizontal" ToolTip="{Binding Converter={StaticResource ToolTipGenerator}, Path=.}">
                <Rectangle x:Name="keyRect"
                               Height="8" Width="12" 
                               VerticalAlignment="Center" 
                               HorizontalAlignment="Center" 
                               Margin="5, 0, 5, 0" Fill="{Binding Converter={StaticResource StringColorConverter}, Path=PrimaryEditorColor}"
                               Stroke="{Binding Converter={StaticResource StringColorConverter}, Path=PrimaryEditorColor}"/>
                <TextBlock x:Name="keyText"
                               VerticalAlignment="Center" 
                               HorizontalAlignment="Center" 
                               Margin="2"
                               TextWrapping="NoWrap"
                               TextTrimming="CharacterEllipsis"
                               Text="{Binding Path=Label}"/>
                </StackPanel>
        </DataTemplate>
        <Style x:Key="PopupCloseButton" BasedOn="{x:Null}" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Grid>
                            <Rectangle Fill="#FFCCCCCC" Stroke="{x:Null}" RadiusX="4.5" RadiusY="4.5" x:Name="rectangle"/>
                            <Rectangle Fill="#FF4F4F4F" Stroke="{x:Null}" RadiusX="0" RadiusY="0" Margin="8,3.5,7,3.5" RenderTransformOrigin="0.5,0.5">
                                <Rectangle.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-34.039"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Rectangle.RenderTransform>
                            </Rectangle>
                            <Rectangle Fill="#FF4F4F4F" Stroke="{x:Null}" RadiusX="0" RadiusY="0" RenderTransformOrigin="0.5,0.5" Margin="8,3.5,7,3.5">
                                <Rectangle.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="-1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="34.039"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Rectangle.RenderTransform>
                            </Rectangle>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsFocused" Value="True"/>
                            <Trigger Property="IsDefaulted" Value="True"/>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="Fill" TargetName="rectangle" Value="#FFADADAD"/>
                            </Trigger>
                            <Trigger Property="IsPressed" Value="True"/>
                            <Trigger Property="IsEnabled" Value="False"/>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <Grid x:Name="LayoutRoot">
        <Border BorderBrush="#FFBDBDBD" BorderThickness="1,1,2,2" CornerRadius="4,4,4,4" Width="250" VerticalAlignment="Top" HorizontalAlignment="Center">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF7F7F7" Offset="0"/>
                    <GradientStop Color="#FFF1F1F1" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="223*" />
                    <ColumnDefinition Width="24*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="28"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Border MouseLeftButtonDown="OnMouseLeftButtonDown" CornerRadius="4,4,0,0"
                        Grid.ColumnSpan="2">
                    <Border.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFF7F7F7" Offset="0"/>
                            <GradientStop Color="#FFE9E9E9" Offset="1"/>
                        </LinearGradientBrush>
                    </Border.Background>
                    <Grid >
                        <TextBlock HorizontalAlignment="Left" Margin="5,0,0,0" VerticalAlignment="Center" FontSize="14" Foreground="#FF5F5F5F" Text="Parameter Palette" TextWrapping="Wrap"/>
						<Button IsCancel="True" HorizontalAlignment="Right" Margin="0,5.5,5,5.5" Style="{DynamicResource PopupCloseButton}" Width="17" Click="Button_Click" x:Name="btnCloseDataTypeLegend"/>
					</Grid>
                </Border>
                <StackPanel Margin="10,10,10,10" Grid.Row="1" Grid.ColumnSpan="2">
                    <Border CornerRadius="5,5,5,5" BorderThickness="1,1,1,1" BorderBrush="#FFC4C4C4" Background="#FFFFFFFF" Height="125">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="22"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <Border HorizontalAlignment="Stretch" Grid.RowSpan="1" CornerRadius="6,6,0,0" BorderThickness="0,0,0,1" BorderBrush="#FFE4E4E4">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FFEEEEEE" Offset="0"/>
                                        <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                                <TextBlock Text="Data Types" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="7,0,0,0" FontSize="12"/>
							</Border>
                            <ListBox x:Name="listDatatypes" Grid.Row="1" Height="100"
                         ItemsSource="{Binding Path=ShownDataTypes}" 
                         ItemTemplate="{StaticResource DatatypeTemplate}" 
                         ScrollViewer.HorizontalScrollBarVisibility="Hidden"
                         ScrollViewer.VerticalScrollBarVisibility="Auto"/>
                        </Grid>
                    </Border>
                    <Border CornerRadius="5,5,5,5" BorderThickness="1,1,1,1" BorderBrush="#FFC4C4C4" Background="#FFFFFFFF" Height="125" Margin="0,5,0,0">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="22"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <Border HorizontalAlignment="Stretch" Grid.RowSpan="1" CornerRadius="6,6,0,0" BorderThickness="0,0,0,1" BorderBrush="#FFE4E4E4">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FFEEEEEE" Offset="0"/>
                                        <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                                <TextBlock Text="Input Parameters" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="7,0,0,0" FontSize="12"/>
							</Border>
                            <Grid HorizontalAlignment="Stretch" Margin="0,5,0,0" VerticalAlignment="Top" Height="88" Grid.Row="1" Grid.RowSpan="1">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="22"/>
                                    <RowDefinition Height="22"/>
                                    <RowDefinition Height="22"/>
                                    <RowDefinition Height="22"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="30"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16" Grid.Row="0">
                                    <Ellipse StrokeThickness="1" >
                                        <Ellipse.Stroke>
                                            <LinearGradientBrush EndPoint="1,0.515" StartPoint="0.4,0.502">
                                                <GradientStop Color="#FF14418A" Offset="0"/>
                                                <GradientStop Color="#FF14418A" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Stroke>
                                        <Ellipse.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                <GradientStop Color="#FFD2E0F4" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Fill>
                                    </Ellipse>
                                    <Path Stretch="Fill" Stroke="{x:Null}" Margin="1.174,1.799,4.634,1.887" StrokeThickness="0" Data="M11.954793,37.359716 L16.642373,42.543174 11.793371,46.933304 C10.223691,45.759541 9.5448178,44.013703 9.4467754,42.523752 9.3550638,40.612388 10.195949,38.466294 11.954793,37.359716 z">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                <GradientStop Color="#FFDBE4F0" Offset="0.996"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Path Stretch="Fill" Stroke="{x:Null}" Margin="0.195,2,5.311,2.104" StrokeThickness="0" Data="M11.954793,37.359716 L16.642373,42.543174 11.793371,46.933304 C9.9202962,46.086481 9.0704433,44.013703 8.9724009,42.523752 8.8806893,40.612388 9.7145931,38.265085 11.954793,37.359716 z">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FF2D5FB1" Offset="0"/>
                                                <GradientStop Color="#FF14418A" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                </Grid>
                                <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16" Grid.Row="1">
                                    <Ellipse StrokeThickness="1" >
                                        <Ellipse.Stroke>
                                            <LinearGradientBrush EndPoint="1,0.515" StartPoint="0.4,0.502">
                                                <GradientStop Color="#FF14418A" Offset="0"/>
                                                <GradientStop Color="#FF14418A" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Stroke>
                                        <Ellipse.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FF2A5CAB" Offset="0"/>
                                                <GradientStop Color="#FF16438D" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Fill>
                                    </Ellipse>
                                    <Path Stretch="Fill" Stroke="{x:Null}" Margin="1.174,1.799,4.634,1.887" StrokeThickness="0" Data="M11.954793,37.359716 L16.642373,42.543174 11.793371,46.933304 C10.223691,45.759541 9.5448178,44.013703 9.4467754,42.523752 9.3550638,40.612388 10.195949,38.466294 11.954793,37.359716 z">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                <GradientStop Color="#FFDBE4F0" Offset="0.996"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Path Stretch="Fill" Stroke="{x:Null}" Margin="0.195,2,5.311,2.104" StrokeThickness="0" Data="M11.954793,37.359716 L16.642373,42.543174 11.793371,46.933304 C9.9202962,46.086481 9.0704433,44.013703 8.9724009,42.523752 8.8806893,40.612388 9.7145931,38.265085 11.954793,37.359716 z">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FF2D5FB1" Offset="0"/>
                                                <GradientStop Color="#FF14418A" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                </Grid>
                                <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16" Grid.Row="2">
                                    <Ellipse StrokeThickness="1" >
                                        <Ellipse.Stroke>
                                            <LinearGradientBrush EndPoint="1,0.515" StartPoint="0.4,0.502">
                                                <GradientStop Color="#FF14418A" Offset="0"/>
                                                <GradientStop Color="#FF14418A" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Stroke>
                                        <Ellipse.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FF2A5CAB" Offset="0"/>
                                                <GradientStop Color="#FF16438D" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Fill>
                                    </Ellipse>
                                    <Path Stretch="Fill" Stroke="{x:Null}" Margin="1.174,1.799,4.634,1.887" StrokeThickness="0" Data="M11.954793,37.359716 L16.642373,42.543174 11.793371,46.933304 C10.223691,45.759541 9.5448178,44.013703 9.4467754,42.523752 9.3550638,40.612388 10.195949,38.466294 11.954793,37.359716 z">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                <GradientStop Color="#FFDBE4F0" Offset="0.996"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Path Stretch="Fill" Stroke="{x:Null}" Margin="0.195,2,5.311,2.104" StrokeThickness="0" Data="M11.954793,37.359716 L16.642373,42.543174 11.793371,46.933304 C9.9202962,46.086481 9.0704433,44.013703 8.9724009,42.523752 8.8806893,40.612388 9.7145931,38.265085 11.954793,37.359716 z" Opacity="0">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FF2D5FB1" Offset="0"/>
                                                <GradientStop Color="#FF14418A" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                </Grid>
                                <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16" Grid.Row="3">
                                    <Ellipse StrokeThickness="1" >
                                        <Ellipse.Stroke>
                                            <LinearGradientBrush EndPoint="1,0.515" StartPoint="0.4,0.502">
                                                <GradientStop Color="#FF14418A" Offset="0"/>
                                                <GradientStop Color="#FF14418A" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Stroke>
                                        <Ellipse.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                <GradientStop Color="#FFD2E0F4" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Fill>
                                    </Ellipse>
                                    <Path Stretch="Fill" Stroke="{x:Null}" Margin="1.174,1.799,4.634,1.887" StrokeThickness="0" Data="M11.954793,37.359716 L16.642373,42.543174 11.793371,46.933304 C10.223691,45.759541 9.5448178,44.013703 9.4467754,42.523752 9.3550638,40.612388 10.195949,38.466294 11.954793,37.359716 z">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FF2B5CAB" Offset="0"/>
                                                <GradientStop Color="#FF16448E" Offset="0.996"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Path Stretch="Fill" Stroke="{x:Null}" Margin="0.875,2,5.311,2.104" StrokeThickness="0" Data="M11.954793,37.359716 L16.642373,42.543174 11.793371,46.933304 C9.9887056,45.583497 9.5609431,44.005248 9.4629007,42.515297 9.4858036,40.729705 10.011567,38.566875 11.954793,37.359716 z">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FFF8FAFC" Offset="0"/>
                                                <GradientStop Color="#FFD4E1F3" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                </Grid>
                                <TextBlock HorizontalAlignment="Left" Margin="0,2,0,0" VerticalAlignment="Top" Grid.Column="1" Text="Activity Required" TextWrapping="Wrap"/>
								<TextBlock HorizontalAlignment="Left" Text="Workflow &amp; Activity Required" TextWrapping="Wrap" Margin="0,2,0,0" VerticalAlignment="Top" Grid.Column="1" Grid.Row="1" />
								<TextBlock Text="Workflow Required" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="0,2,0,0" VerticalAlignment="Top" Grid.Column="1" Grid.Row="2" />
								<TextBlock Text="Workflow &amp; Activity Optional" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="0,2,0,0" VerticalAlignment="Top" Grid.Column="1" Grid.Row="3" />
							</Grid>
                        </Grid>
                    </Border>
                    <Border CornerRadius="5,5,5,5" BorderThickness="1,1,1,1" BorderBrush="#FFC4C4C4" Background="#FFFFFFFF" Margin="0,5,0,0">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="22"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <Border HorizontalAlignment="Stretch" Grid.RowSpan="1" CornerRadius="6,6,0,0" BorderThickness="0,0,0,1" BorderBrush="#FFE4E4E4">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FFEEEEEE" Offset="0"/>
                                        <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                                <TextBlock Text="Output Parameters" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="7,0,0,0" FontSize="12"/>
							</Border>
                            <Grid HorizontalAlignment="Stretch" Margin="0,5,0,5" VerticalAlignment="Top" Height="44" Grid.Row="1" Grid.RowSpan="1">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="22"/>
                                    <RowDefinition Height="22"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="30"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16">
                                    <Ellipse StrokeThickness="1" >
                                        <Ellipse.Stroke>
                                            <LinearGradientBrush EndPoint="1,0.515" StartPoint="0.4,0.502">
                                                <GradientStop Color="#FF14418A" Offset="0"/>
                                                <GradientStop Color="#FF14418A" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Stroke>
                                        <Ellipse.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FF2A5CAB" Offset="0"/>
                                                <GradientStop Color="#FF16438D" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Fill>
                                    </Ellipse>
                                    <Path Stretch="Fill" Stroke="{x:Null}" Margin="1.174,1.799,4.634,1.887" StrokeThickness="0" Data="M11.954793,37.359716 L16.642373,42.543174 11.793371,46.933304 C10.223691,45.759541 9.5448178,44.013703 9.4467754,42.523752 9.3550638,40.612388 10.195949,38.466294 11.954793,37.359716 z">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                <GradientStop Color="#FFDBE4F0" Offset="0.996"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Path Stretch="Fill" Stroke="{x:Null}" Margin="0.195,2,5.311,2.104" StrokeThickness="0" Data="M11.954793,37.359716 L16.642373,42.543174 11.793371,46.933304 C9.9202962,46.086481 9.0704433,44.013703 8.9724009,42.523752 8.8806893,40.612388 9.7145931,38.265085 11.954793,37.359716 z" Opacity="0">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FF2D5FB1" Offset="0"/>
                                                <GradientStop Color="#FF14418A" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                </Grid>
                                <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16" Grid.Row="1">
                                    <Ellipse StrokeThickness="1" >
                                        <Ellipse.Stroke>
                                            <LinearGradientBrush EndPoint="1,0.515" StartPoint="0.4,0.502">
                                                <GradientStop Color="#FF14418A" Offset="0"/>
                                                <GradientStop Color="#FF14418A" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Stroke>
                                        <Ellipse.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                <GradientStop Color="#FFD2E0F4" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Fill>
                                    </Ellipse>
                                    <Path Stretch="Fill" Stroke="{x:Null}" Margin="1.174,1.799,4.634,1.887" StrokeThickness="0" Data="M11.954793,37.359716 L16.642373,42.543174 11.793371,46.933304 C10.223691,45.759541 9.5448178,44.013703 9.4467754,42.523752 9.3550638,40.612388 10.195949,38.466294 11.954793,37.359716 z">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FF2B5CAB" Offset="0"/>
                                                <GradientStop Color="#FF16448E" Offset="0.996"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Path Stretch="Fill" Stroke="{x:Null}" Margin="0.875,2,5.311,2.104" StrokeThickness="0" Data="M11.954793,37.359716 L16.642373,42.543174 11.793371,46.933304 C9.9887056,45.583497 9.5609431,44.005248 9.4629007,42.515297 9.4858036,40.729705 10.011567,38.566875 11.954793,37.359716 z">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FFF8FAFC" Offset="0"/>
                                                <GradientStop Color="#FFD4E1F3" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                </Grid>
                                <TextBlock Text="Workflow Required" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="1" Margin="0,2,0,0"/>
								<TextBlock Text="Workflow Optional" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="0,2,0,0" VerticalAlignment="Top" Grid.Column="1" Grid.Row="1" />
							</Grid>
                        </Grid>
                    </Border>
                </StackPanel>
            </Grid>
        </Border>
    </Grid>
</Window>

